cf3988
@@ -2316,7 +2316,7 @@
void dropPartitionsInBatches(Hive db, List<String> repairOutput,
     String dropMsgFormat =
         "Repair: Dropped partition from metastore " + table.getFullyQualifiedName() + ":%s";
     // Copy of partitions that will be split into batches
-    Set<CheckResult.PartitionResult> batchWork = new HashSet<>(partsNotInFs);
+    Set<CheckResult.PartitionResult> batchWork = new TreeSet<>(partsNotInFs);
 
     new RetryUtilities.ExponentiallyDecayingBatchWork<Void>(batchSize, decayingFactor, maxRetries) {
       @Override
